package org.csu.mypetstore.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@Data
@TableName("logtable")
@AllArgsConstructor
public class LogTable {
    @TableId(type = IdType.AUTO)
    int id;
    String username;
    @TableField(value = "className")
    String className;

    public LogTable(String username, String className, String methodName, String args, String module, String operation, Date time) {
        this.username = username;
        this.className = className;
        this.methodName = methodName;
        this.args = args;
        this.module = module;
        this.operation = operation;
        this.time = time;
    }

    @TableField(value = "methodName")
    String methodName;
    String args;
    String module;
    String operation;
    Date time;

}
